//index.js
//获取应用实例
const app = getApp()
Page({
  data: {
    imgUrls: [
      '/images/swiper01.jpg',
      '/images/swiper02.jpg',
      '/images/swiper03.jpg',
    ],
    indicatorDots: true,
    autoplay: false,
    interval: 5000,
    duration: 1000,
    proList:null,
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.getProList();
  },


  getProList: function () {
    var self = this;
    wx.request({
      // url: app.globalData.host +'getdata.php',
      url:'https://api.chinaiart.com/index.php/api/index/temp1',
      method: 'GET',
      success: function (res) {
        console.log(res);
        // self.setData({
        //   proList: res.data,
        // })
      },
      fail: function () {

      }
    })
  },
})